package vlms.bean;

import java.util.Date;

/**
 * 
 * This classes is the Data Transfer Object(Value Object) defination for the
 * entity issuedmovies
 * 
 */

public class IssuedMovie {
	private int issueid;
	private Date duedate;
	private int personid;
	private int movieid;
	private Date issuedate;
	private String issuedstatus;

	public Date getDuedate() {
		return duedate;
	}

	public void setDuedate(Date duedate) {
		this.duedate = duedate;
	}

	public Date getReturndate() {
		return returndate;
	}

	public void setReturndate(Date returndate) {
		this.returndate = returndate;
	}

	public int getFine() {
		return fine;
	}

	public void setFine(int fine) {
		this.fine = fine;
	}

	private Date returndate;
	private int fine;

	public IssuedMovie() {
	}

	public IssuedMovie(int issueid, int personid, int movieid, Date issuedate,
			String issuedstatus) {
		this.issueid = issueid;
		this.personid = personid;
		this.movieid = movieid;
		this.issuedate = issuedate;
		this.issuedstatus = issuedstatus;
	}

	public void setIssueid(int issueid) {
		this.issueid = issueid;
	}

	public int getIssueid() {
		return (issueid);
	}

	public void setPersonid(int personid) {
		this.personid = personid;
	}

	public int getPersonid() {
		return (personid);
	}

	public void setMovieid(int movieid) {
		this.movieid = movieid;
	}

	public int getMovieid() {
		return (movieid);
	}

	public void setIssuedate(Date issuedate) {
		this.issuedate = issuedate;
	}

	public Date getIssuedate() {
		return (issuedate);
	}

	public void setIssuedstatus(String issuedstatus) {
		this.issuedstatus = issuedstatus;
	}

	public String getIssuedstatus() {
		return (issuedstatus);
	}
	@Override
	public boolean equals(Object obj) {
		boolean result = false;
		IssuedMovie iMovie = (IssuedMovie) obj;
		if(this == obj || issueid == iMovie.getIssueid())
		{
			result = true;
		}
		return result;
	}
}
